package com.lianzhihui.romeex.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.lianzhihui.romeex.R;

import java.util.List;

/**
 * ProjectName:    NBN
 * ClassName:      AddressAdapter
 * Description:    账户列表适配器
 * Author:         echo
 * CreateDate:     2019/10/28 17:07
 * UpdateUser:     更新者
 * UpdateDate:     2019/10/28 17:07
 * UpdateRemark:   更新说明
 * Version:        1.0
 */
public class WordsItemAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    public WordsItemAdapter(@Nullable List<String> data) {
        super(R.layout.item_choose_words,data);
    }
    @Override
    protected void convert(BaseViewHolder helper, String item) {
        helper.setText(R.id.tv_word,item);
        helper.setText(R.id.tv_index,(helper.getAdapterPosition()+1)+".  ");
    }
}
